﻿using System;
using System.Linq;
using SharpChannel.Rpc;
using SharpErp.Data.Service;

namespace SharpErp.Service.Client
{
    public class ServiceWarpper
    {
    	private static ISharpErpService service;

        public static ISharpErpService GetService()
        {
            //return SharpChannelClient<ISharpErpService>.GetInstance();
            if(service == null) service = new Data.Service.SharpErpServiceImpl();
            return service;
        }

        public static void Main(string[] args)
        {
            Console.WriteLine(GetService().GetAllItemClass().Count());
            Console.ReadKey();
        }
    }
}
